import request from '@/utils/request';

export async function getKline(param) {
  return request(`/fss/Kline/GetKline?code=${param}`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    // body:JSON.stringify(params)
  });
}

export async function searchCode(param) {
  return request(`http://fss.91stock.net/fss/Kline/SearchCode?keyword=${param}`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    // body:JSON.stringify(params)
  });
}
